.class public Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;
.super Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;
.source "SdcardFileFragment.java"


# instance fields
.field private o:Ljava/lang/String;

.field public p:Ljava/lang/String;

.field public q:Ljava/lang/String;

.field public r:Ljava/lang/String;

.field private s:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const-string v0, "tag"

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->o:Ljava/lang/String;

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->s:Z

    return-void
.end method

.method private H()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    instance-of v0, v0, Lcom/estrongs/android/pop/app/filetransfer/TransferFileSelectActivity;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/filetransfer/TransferFileSelectActivity;

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/filetransfer/TransferFileSelectActivity;->H()V

    :cond_0
    return-void
.end method


# virtual methods
.method protected F()V
    .locals 3

    .line 1
    new-instance v0, Lcom/estrongs/android/ui/recycler/DividerDecoration;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/ui/recycler/DividerDecoration;-><init>(Landroid/content/Context;)V

    const/4 v1, 0x1

    .line 2
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/recycler/DividerDecoration;->b(I)V

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const v2, 0x7f06003a

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/recycler/DividerDecoration;->a(I)V

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V

    return-void
.end method

.method public G()V
    .locals 2

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->p:Ljava/lang/String;

    if-nez v0, :cond_1

    const-string v0, "/"

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->p:Ljava/lang/String;

    .line 3
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->p:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 5
    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->q:Ljava/lang/String;

    .line 6
    :cond_0
    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 7
    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->r:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 8
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    :goto_0
    return-void
.end method

.method protected a(Landroid/os/Bundle;Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment$c;)V
    .locals 2
    .param p1    # Landroid/os/Bundle;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    if-eqz p1, :cond_0

    const-string v0, "root_path"

    .line 1
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->a(Ljava/lang/String;)V

    .line 2
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    new-instance v0, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/estrongs/android/pop/app/log/WrapContentLinearLayoutManager;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 3
    new-instance p1, Lcom/estrongs/android/pop/app/filetransfer/adapter/SdcardFileAdapter;

    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->p:Ljava/lang/String;

    invoke-direct {p1, v0, p2, v1}, Lcom/estrongs/android/pop/app/filetransfer/adapter/SdcardFileAdapter;-><init>(Landroid/content/Context;Landroid/os/Handler;Ljava/lang/String;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->l:Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;

    .line 4
    invoke-virtual {p1, p0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;->a(Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter$c;)V

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->d:Landroidx/recyclerview/widget/RecyclerView;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->l:Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;

    invoke-virtual {p1, p2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->v()V

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->D()V

    .line 8
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->G()V

    .line 9
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->F()V

    return-void
.end method

.method public a(Landroid/view/View;I)V
    .locals 0

    .line 11
    invoke-super {p0, p1, p2}, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->a(Landroid/view/View;I)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->o:Ljava/lang/String;

    const-string p2, "AppFragment onItem click"

    invoke-static {p1, p2}, Lcom/estrongs/android/util/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->m:Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment$d;

    if-eqz p1, :cond_0

    const/16 p2, 0x18

    .line 14
    invoke-interface {p1, p2}, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment$d;->b(I)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 10
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->p:Ljava/lang/String;

    return-void
.end method

.method public onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->p:Ljava/lang/String;

    const-string v1, "root_path"

    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onSaveInstanceState(Landroid/os/Bundle;)V

    return-void
.end method

.method protected w()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->l:Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;->g()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->h:Lcom/estrongs/android/ui/addressbar/AdvancedAddressBar;

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/String;

    const/4 v2, 0x0

    const v3, 0x7f110b87

    invoke-virtual {p0, v3}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, v1, v2

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/addressbar/AdvancedAddressBar;->setDisplayPaths([Ljava/lang/String;)V

    return-void

    .line 3
    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 4
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->l:Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;

    invoke-virtual {v2}, Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;->d()Ljava/lang/String;

    move-result-object v2

    .line 6
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v3

    invoke-static {v3, v2, v0, v1}, Les/vl;->a(Landroid/content/Context;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->h:Lcom/estrongs/android/ui/addressbar/AdvancedAddressBar;

    new-instance v2, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment$a;

    invoke-direct {v2, p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment$a;-><init>(Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;)V

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/addressbar/AdvancedAddressBar;->setOnAddressBarClickListener(Lcom/estrongs/android/ui/addressbar/AdvancedAddressBar$d;)V

    .line 8
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    .line 9
    new-array v0, v0, [Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Ljava/lang/String;

    .line 10
    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->h:Lcom/estrongs/android/ui/addressbar/AdvancedAddressBar;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/addressbar/AdvancedAddressBar;->setDisplayPaths([Ljava/lang/String;)V

    return-void
.end method

.method public x()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->o:Ljava/lang/String;

    const-string v1, "SdcardFileFragment onBackPressed"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    invoke-super {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->x()Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->l:Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;

    if-nez v0, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    check-cast v0, Lcom/estrongs/android/pop/app/filetransfer/adapter/SdcardFileAdapter;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/SdcardFileAdapter;->l()Z

    move-result v0

    return v0

    :cond_1
    :goto_0
    const/4 v0, 0x1

    return v0
.end method

.method protected y()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->l:Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;

    invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;->notifyDataSetChanged()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->l:Lcom/estrongs/android/pop/app/filetransfer/adapter/AbsSelectFileAdapter;

    check-cast v0, Lcom/estrongs/android/pop/app/filetransfer/adapter/SdcardFileAdapter;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/filetransfer/adapter/SdcardFileAdapter;->m()V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/AbsSelectFileFragment;->u()V

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->w()V

    .line 5
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->s:Z

    if-eqz v0, :cond_0

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->H()V

    :cond_0
    const/4 v0, 0x0

    .line 7
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/filetransfer/fragment/SdcardFileFragment;->s:Z

    return-void
.end method
